#!/usr/bin/python



import syslog;

import time;



while(1):
  
	syslog.openlog(ident="MotionSensor8",logoption=syslog.LOG_PID,facility=syslog.LOG_LOCAL1);
    
	syslog.syslog(syslog.LOG_INFO,'<info> Motion detected');
   
	time.sleep(2);
    
	syslog.closelog();
 
  